package com.zkflzl.initbackendorderservice.controller;

import com.zkflzl.initbackendcommon.common.BaseResponse;
import com.zkflzl.initbackendcommon.common.ResultUtils;
import com.zkflzl.initbackendserviceclient.service.UserFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

@Slf4j
@RestController
@RequestMapping("/order")
public class OrderController {
    @Resource
    private UserFeignClient userFeignClient;
    @GetMapping("/test")
    public BaseResponse<Boolean> testAdd(HttpServletRequest request) {
        userFeignClient.getLoginUser(request);
        return ResultUtils.success(false);
    }
}
